#pragma once

#include "String.h"
#include "jSecurity.h"

#ifdef _WIN32_WCE
#define FxSysFile	"\\Windows\\jFxSys.ini"
#define FxUserFile	"\\Windows\\jFxUser.ini"
#define FxBuddyFile "\\Windows\\jFxBuddy.ini"
#else
#define FxSysFile	".\\jFxSys.ini"
#define FxUserFile	".\\jFxUser.ini"
#define FxBuddyFile ".\\jFxBuddy.ini"
#endif

class UserInfo
{
public:
	AStr name;
	AStr mobileno;
	AStr uri;
	AStr fxno;
	AStr uid;
	AStr pwd;
	
	int I,Q;
	
	AStr sipcaddr;
	
	int Status;

	UserInfo& operator=(const UserInfo& ui);
	AStr GetIni(AStr f, AStr b, AStr e, AStr p="");
	bool GetSysConfig(AStr& User);
	bool GetUserInfo(AStr& User, AStr& pwd);
	bool Init(AStr User, AStr Password);
	UserInfo(AStr User, AStr Pass);	
	UserInfo(){ I=1; Q=1; Status = 0; }
};
